<#include "/WEB-INF/admin/app/common/_public.html" />

<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${ctx}/security/org" method="post">
        <div class="office">
            <ul class="offbtn">
                <li> <a id="user_add" data-toggle="navtab" data-url="${ctx}/security/org/add" data-id="org_navtab_add" >
                    <span><i class="fa fa-plus"></i></span>新增</a>
                </li>
                <li> <a id="org_edit" data-toggle="navtab" data-url="${ctx}/security/org/edit/{#bjui-selected}" data-id="org_navtab_edit" >
                    <span><i class="fa fa-edit"></i></span>编辑</a>
                </li>
                <li> <a id="org_view" data-toggle="navtab" data-url="${ctx}/security/org/view/{#bjui-selected}" data-id="org_navtab_view" >
                    <span><i class="fa fa-search"></i></span>查看</a>
                </li>
                <li> <a id="user_refresh" data-toggle="reloadsearch" data-target="#bjui-pageContent" >
                    <span><i class="fa fa-refresh"></i></span>刷新</a>
                </li>
            </ul>
        </div>
        <input type="hidden" name="limit" value="${page.pageSize!}">
        <input type="hidden" name="start" value="${page.pageNumber!}">
        <input type="hidden" name="total" value="${page.totalRow!}">
        <div class="bjui-searchBar">
            <label>部门名称:</label>
            <input type="text" class="input_240" name="name" value="${name!}"/>
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询</a>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table class="table table-bordered table-hover table-striped table-top" data-toggle="tablefixed"  data-selected-multi="true">
        <thead>
        <tr>
            <th>
                <input type="checkbox" class="checkboxCtrl" data-toggle="icheck" data-group="ids"/>
            </th>
            <th align=center nowrap>
                部门名称
            </th>
            <th align=center  nowrap>
                上级部门名称
            </th>
            <th align=center  nowrap>
                负责人
            </th>
            <th align=center nowrap>
                操作
            </th>
        </tr>
        </thead>
        <tbody>
        <#list page.list as org>
            <tr>
                <td>
                    <input type="checkbox" name="ids" data-toggle="icheck" value="{org.id!}">
                </td>
                <td class="td_list_2" align=left nowrap>
                    ${org.name!}&nbsp;
                </td>
                <td class="td_list_2" align=left nowrap>
                    ${org.parentName!}&nbsp;
                </td>
                <td class="td_list_2" align=left nowrap>
                    ${org.leader!}&nbsp;
                </td>
                <td class="td_list_2" align=left nowrap>
                    <a href="javascript:;" data-toggle="lookupback" data-args="{orgid:'${org.id!}', profession:'${org.name!}'}" class="btn btn-blue" title="选择本项" data-icon="check">选择</a>
                </td>
            </tr>
        </#list>
        </tbody>
    </table>
</div>
<#include "/WEB-INF/admin/app/common/_paging.html" />
